package zuoye1;

import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        System.out.print("请输入一个数：");
        int num = new Scanner(System.in).nextInt();
        if (num%2!=0){
            System.out.println(num + "是偶数");
        }else {
            System.out.println(num + "是奇数");
        }
    }
}
